/**
 * Copyright &copy; 2012-2016 civet All rights reserved.
 */
package cn.mcsys.myadmin.modules.air.dao;

import cn.mcsys.myadmin.common.persistence.CrudDao;
import cn.mcsys.myadmin.common.persistence.annotation.MyBatisDao;
import cn.mcsys.myadmin.modules.air.entity.AirSendMessage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 发布消息DAO接口
 * @author leopold
 * @version 2018-08-13
 */
@MyBatisDao
public interface AirSendMessageDao extends CrudDao<AirSendMessage> {

    List<AirSendMessage> selectByAirUser();

    List<AirSendMessage> getMessageByReceiverType(int type);

    void batchInsert(List<AirSendMessage> airSendMessages);

    List<AirSendMessage> selectByPointId(@Param("recevier") Integer recevier,@Param("pointId") Integer pointId);
}